package fr.pascal.client;

import com.google.gwt.place.shared.PlaceController;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.SimpleEventBus;

import fr.pascal.client.ui.animal.ChatView;
import fr.pascal.client.ui.animal.ChatViewImpl;
import fr.pascal.client.ui.animal.KangourouView;
import fr.pascal.client.ui.animal.KangourouViewImpl;

public class ClientFactoryImpl implements ClientFactory {

	private final EventBus eventBus = new SimpleEventBus();
	private final PlaceController placeController = new PlaceController(eventBus);
	private final ChatView chatView = new ChatViewImpl();
	private final KangourouView kangourouView = new KangourouViewImpl();

	@Override
	public EventBus getEventBus() {
		return eventBus;
	}

	@Override
	public PlaceController getPlaceController() {
		return placeController;
	}

	@Override
	public ChatView getChatView() {
		return chatView;
	}

	@Override
	public KangourouView getKangourouView() {
		return kangourouView;
	}
}
